package com.itheima.info.system.manager.factory;

import com.itheima.info.system.manager.controller.IBaseStudentController;
import com.itheima.info.system.manager.controller.IBaseTeacherController;
import com.itheima.info.system.manager.controller.StudentController;
import com.itheima.info.system.manager.controller.TeacherController;
import com.itheima.info.system.manager.dao.IBaseStudentDao;
import com.itheima.info.system.manager.dao.IBaseTeacherDao;
import com.itheima.info.system.manager.dao.StudentDao;
import com.itheima.info.system.manager.dao.TeacherDao;
import com.itheima.info.system.manager.service.IBaseStudentService;
import com.itheima.info.system.manager.service.IBaseTeacherService;
import com.itheima.info.system.manager.service.StudentService;
import com.itheima.info.system.manager.service.TeacherSerivce;

public class Factory {
    //工厂类解耦  IO流
    public static IBaseStudentService getStudentService() {
        return new StudentService();
    }

    public static IBaseTeacherService getTeacherService() {
        return new TeacherSerivce();
    }

    public static IBaseStudentDao getStudentDao() {
        return new StudentDao();
    }

    public static IBaseTeacherDao getTeacherDao() {
        return new TeacherDao();
    }

    public static IBaseTeacherController getTeacherController() {
        return new TeacherController();
    }

    public static IBaseStudentController getStudentController() {
        return new StudentController();
    }
}
